package com.citicpub_cloud.restfull.dao.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.citicpub_cloud.restfull.dao.core.TbVideoInfo;

public class TbVideoInfoMapper implements RowMapper<TbVideoInfo> {  
	@Override
	public TbVideoInfo mapRow(ResultSet rs, int index) throws SQLException {
		TbVideoInfo obj = new TbVideoInfo();
		obj.setImgurl(rs.getString("imgurl"));
		obj.setVideourl(rs.getString("videourl"));
		obj.setVideoTitle(rs.getString("video_title"));
		obj.setVideoSize(rs.getLong("video_size"));
		return obj;
	}
}
